﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

// Condition: Write a program that allocates array of 20 integers and initializes each element by its index
//            multiplied by 5. Print the obtain array on the console.

class MultiplyArray
{
    static void Main()
    {
        // 1. Create array of 20 elements.

        int[] myArr = new int[20];

        // 2. Define elements value according given condition and print them on console.
        Console.WriteLine("The elements of the array are: ");
        for (int index = 0; index < myArr.Length; index++)
        {
            myArr[index] = index * 5;
            Console.WriteLine("- element[{0}]= {1}", index, myArr[index]);
        }

    }
}

